package homework.day02;

import com.seecen.day02.MyJpanel;

import javax.swing.*;

public class twoJFrame {
    public static void main(String args[]){
        JFrame jf=new JFrame();
        jf.setTitle("月食");
        jf.setSize(1024,768);
        jf.setVisible(true);
        jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        twoJpanel jp=new twoJpanel();
        jf.add(jp);
        Thread thread=new Thread(jp);
        thread.start();

    }
}
